<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\api\controller;

/**
 * 公共基础接口控制器
 */
class Common extends ApiBase
{
    
    /**
     * 登录接口
     */
    public function login()
    {
        
        return $this->apiReturn($this->logicCommon->login($this->param));
    }
    
    /**
     * 修改密码接口
     */
    public function changePassword()
    {
        
        return $this->apiReturn($this->logicCommon->changePassword($this->param));
    }
    
    /**
     * 友情链接
     */
    public function getBlogrollList()
    {
        
        return $this->apiReturn($this->logicCommon->getBlogrollList($this->param));
    }
    
    //性别接口
    public function getEmployList($value='')
    {

        return $this->apiReturn($this->logicEmploy->getEmployList($this->param));
    }
     //考勤接口
    public function getAttendanceList($value='')
    {

        return $this->apiReturn($this->logicAttendance->getAttendanceList($this->param));
    }
    //姓名接口
    public function getQingjiabiaoList($value='')
    {

        return $this->apiReturn($this->logicQingjiabiao->getQingjiabiaoList($this->param));
    }
     //姓别接口
    public function getTongjiList($value='')
    {

        return $this->apiReturn($this->logicTongji->getTongjiList($this->param));
    }
    //年龄接口
    public function getAgeList($value='')
    {

        return $this->apiReturn($this->logicAge->getAgeList($this->param));
    }
}
